package net.starwifi.wx.api;

import net.starwifi.wx.tools.HttpUtils;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2016/1/27.
 */
public class ShareAPI {

    public static String getToken(String appKey,String appSecret){
        String baseUrl="https://api.weixin.qq.com/sns/oauth2/access_token";
        Map<String,Object> params=new HashMap<String, Object>();
        params.put("appid",appKey);
        params.put("secret",appSecret);
        return HttpUtils.get(baseUrl, params);
    }



}
